package cn.wk.services.impl;

import cn.wk.dao.AdminsDao;
import cn.wk.dao.TeacherDao;
import cn.wk.dao.impl.AdminDaolmpl;
import cn.wk.dao.impl.TeacherDaolmpl;
import cn.wk.entity.Admins;
import cn.wk.entity.Teacher;
import cn.wk.services.AdminsServices;
import cn.wk.services.TeacherServices;

import java.util.List;

public class TeacherServicesImpl implements TeacherServices {
    private TeacherDao dao=new TeacherDaolmpl();
    @Override
    public List<Teacher> getAllTeacher(Object...obj) {
        return dao.getAllTeacher(obj);
    }

    @Override
    public int AddTeacher(Object... obj) {
        return dao.AddTeacher(obj);
    }

    @Override
    public int MidffTeacher(Object... obj) {
        return dao.MidffTeacher(obj);
    }

    @Override
    public int DelTeacher(Object... obj) {
        return dao.DelTeacher(obj);
    }
    @Override
    public int CountSize(){
        return dao.CountSize();
    }

    @Override
    public Teacher findTeacherById(int aid) {
        return dao.findTeacherById(aid);
    }

    @Override
    public Teacher findAdminByNo(String no) {
        return dao.findTeacherByNo(no);
    }

    @Override
    public List<Teacher> getByTeacherNameandId() {
        return dao.getByTeacherNameandId();
    }


}
